import {Entity, PrimaryGeneratedColumn, Column, ManyToOne, BaseEntity} from 'typeorm';
import { Region } from './region.entity';

@Entity()
export class ConsigneeInfo extends BaseEntity {
    @PrimaryGeneratedColumn()
    id: number;

    @Column()
    name: string;

    @Column()
    phone: string;

    @ManyToOne(() => Region)
    province: Region;

    @ManyToOne(() => Region)
    city: Region;

    @ManyToOne(() => Region)
    district: Region;

    @ManyToOne(() => Region)
    street: Region;

    @Column()
    detailAddress: string;
}
